*Change definition of relative risk first authorship

gen cprob_firstf = first_female/(female_aship)
gen cprob_firstm = first_male/(male_aship)
gen ratio_fm_first = cprob_firstf/cprob_firstm 
gen p1 = (first_female + 0.5) / (female_aship + 1)
gen p2 = (first_male + 0.5) / (male_aship + 1)
gen CI_U_first = p1/p2*exp(1.96*(((1-p1)/((female_aship)*p1))+((1-p2)/((male_aship))))^0.5)   
gen CI_L_first = p1/p2*exp(-1.96*(((1-p1)/((female_aship)*p1))+((1-p2)/((male_aship))))^0.5)   
drop p1 p2
